package com.practice.springboot_01_zwj.entity.dto;

import com.github.pagehelper.PageInfo;
import com.practice.springboot_01_zwj.entity.AssignedTask;

public class AssignedTaskResponse {
        private PageInfo<AssignedTask> pageInfo;
        private Integer completedCount; // 已完成数量
        private Integer uncompletedCount; // 进行中数量
        private Integer total; // 总数量

        // 构造方法
        public AssignedTaskResponse(PageInfo<AssignedTask> pageInfo,
                                    Integer completedCount,
                                    Integer uncompletedCount,
                                    Integer total) {
            this.pageInfo = pageInfo;
            this.completedCount = completedCount;
            this.uncompletedCount = uncompletedCount;
            this.total = total;
        }

        // getters and setters
        public PageInfo<AssignedTask> getPageInfo() { return pageInfo; }
        public void setPageInfo(PageInfo<AssignedTask> pageInfo) { this.pageInfo = pageInfo; }
        public Integer getCompletedCount() { return completedCount; }
        public void setCompletedCount(Integer completedCount) { this.completedCount = completedCount; }
        public Integer getUncompletedCount() { return uncompletedCount; }
        public void setUncompletedCount(Integer uncompletedCount) { this.uncompletedCount = uncompletedCount; }
        public Integer getTotal() { return total; }
        public void setTotal(Integer total) { this.total = total; }
    }

